﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace VietPremier.Models
{
    public class ContactUsModel
    {
        public string FullName { get; set; }
        public string Gender { get; set; }
        [RegularExpression(@"^[0-9]{0,15}$", ErrorMessage = "Age should contain only numbers")]
        public string Age { get; set; }
        public string Nationality { get; set; }
        public string Address { get; set; }
        [RegularExpression(@"^[0-9]{0,15}$", ErrorMessage = "Telephone Number should contain only numbers")]
        public string Telephone { get; set; }
        [RegularExpression(@"^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$", ErrorMessage = "Please insert correct Email")]
        public string Email { get; set; }
        [RegularExpression(@"^[0-9]{0,15}$", ErrorMessage = "NumberofAdults should contain only numbers")]
        public int NumberofAdults { get; set; }
        [RegularExpression(@"^[0-9]{0,15}$", ErrorMessage = "NumberofChildren should contain only numbers")]
        public int NumberofChildren { get; set; }
        [RegularExpression(@"^[0-9]{0,15}$", ErrorMessage = "NumberofTraveldays should contain only numbers")]
        public int NumberofTraveldays { get; set; }
        public DateTime? DateFrom { get; set; }
        public DateTime? DateTo { get; set; }
        public string Place { get; set; }
        public string SpecialRequest { get; set; }
    }
}